class CreateLogs < ActiveRecord::Migration
  def self.up
    create_table :logs do |t|
      t.references :usuario
      t.references :accion
      t.text :params
      t.string :ip

      t.timestamps
    end
    add_index :logs, :usuario_id
    add_index :logs, :created_at
  end

  def self.down
    drop_table :logs
  end
end
